package cn.tom.service;

import cn.tom.entity.Cart2Ord;
import cn.tom.entity.Order;
import cn.tom.entity.Order2u;
import cn.tom.entity.UniCart2Ord;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface OrderService {
    int doPay(int i, Integer num);

    Order findByOrdId(int i);

    void addCart2Ord(Cart2Ord cart2Ord);

    void uniaddCart2Ord(UniCart2Ord uniCart2Ord);

    int getCountOrdersByUid(Map<String, Object> map);
    List<Order> findPageOrdersByUid(Map<String, Object> map);

    int getCountOrders2u(Map<String, Object> map);

    List<Order2u> findPageOrders2u(Map<String, Object> map);

    Order2u findOrder2uByOrdid(int i);

    int updateShip(int i, int i2, String str, String str2, Date date);

    List<Integer> findBookidByOrdid(int ordid);
}
